package com.sh.learn.manning.springinaction.chapter01.di;

public class KnightOfTheRoundTable implements Knight {
	private String name;
	private Quest quest;

	public KnightOfTheRoundTable() {
	    super();
    }

	public KnightOfTheRoundTable(String name) {
		this.name = name;
	}

	public Object embarkOnQuest() throws QuestFailedException {
		return quest.embark();
	}

	public void setQuest(Quest quest) {
		this.quest = quest;
	}

	public String getName() {
		return name;
	}
}
